import server from "@/utils/requests";

export const login = (params)=>{
    return server({
        url:'/login/passwd',
        method:'post',
        data:params
    })
}

export const user_info = (params)=>{
    return server({
        url:'/user',
        method:'get',
        params:params
    })
}

export const register = (params)=>{
    return server({
        url:'/register',
        method:'post',
        data:params
    })
}